package org.keyyond.ms.business.dao;

import java.util.Map;

import org.keyyond.ms.business.mapper.MsBusinessMessageLogMapper;
import org.keyyond.ms.business.model.MsBusinessMessageLog;
import org.keyyond.ms.business.util.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
 * @author zhuyong
 * @belong to Shccs
 * @date:2018-1-19(V1.0)
 * @date:2018-1-19(V1.0)
 * @version : V1.0
 */
@Component
public class MsBusinessMessageLogDao extends BaseDao<MsBusinessMessageLog> {
	
	private static final long serialVersionUID = -8210210156580849908L;
	
	@Autowired
	private MsBusinessMessageLogMapper businessMessageLogMapper;
	
	/**
	 * 获取发送验证码次数
	 * 
	 * @author YCR
	 * @since 2018-1-19
	 * @category </br>获取发送验证码次数</br>
	 *           
	 * @param map
	 *            | map<String,String> | 必填  查询条件
	 * @return <b>int</br>
	 * @exception 
	 */
	public int getSendCount(Map<String, String> map) {
		return businessMessageLogMapper.getSendCount(map);
	}
	
}
